CreateDeploymentSet
Description
call CreateDeploymentSet to create a deployment set in the specified region.
Request Method
POST
Request Path
/apsara/route/Ecs/CreateDeploymentSet
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
OnUnableToRedeployFailedInstance | BODY | string | No | CancelMembershipAndStart | After the instance in the deployment set is down and migrated, there is a lack of emergency processing plan for the instance inventory that can be broken up. Value range: CancelMembershipAndStart (default): remove the instance from the deployment set and start the instance immediately after the outage migration. KeepStopped: keep abnormal state and wait for sufficient replenishment before starting the instance. |
Description | BODY | string | No | This is a description example. | deployment set description information. 2 to 256 English or Chinese characters in length and cannot start with http:// or https. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Strategy | BODY | string | No | null | deployment policy. Value range: LooseDispersion: as scattered as possible. LooseAggregation: try to aggregate. StrictAggregation: strict aggregation. StrictDispersion: strictly dispersed. default value: LooseDispersion. If the deployment granularity is Switch, four deployment policies can be supported. If the deployment granularity is Rack or Host, you can only choose to disperse as much as possible or strictly disperse. |
DeploymentSetName | BODY | string | No | FinanceDeployment | deployment set name. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or hyphens (-). |
RegionId | BODY | string | Yes | cn-qingdao-**** | the region ID of the deployment set. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
ClientToken | BODY | string | No | 123e4567-e89b-12d3-a456-426655440000 | Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters. For more details, please refer to the section on how to ensure idempotence in the cloud server ECS development guide. |
Domain | BODY | string | No | null | deployment domain. Value range: Default Switch default value: Default. |
Granularity | BODY | string | No | null | deployment granularity. Value range: Host: host, which means that the minimum scheduling granularity is a physical server. Rack: The minimum scheduling granularity is one rack. Switch: The minimum scheduling granularity is a network switch. default value: Host. If the deployment domain is Switch, the deployment granularity cannot select Switch. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}